ScxV6Aggregate.Interface Method

Returns an object representing the database interface of the aggregate.

Remarks

The Interface method returns an automation interface that provides access to all properties and methods available on the database object. This is an alternative to using the Property property to access database properties of an aggregate.

For information about what properties and methods are available refer to the Database Schema

Example:

The following example written in VB.NET shows the Interface method being used set the serial port string of the secondary port of a modbus channel.

Dim Svr As ScxV6DbClient.ScxV6Server

Dim Obj As ScxV6DbClient.ScxV6Object

Dim Aggr As ScxV6DbClient.ScxV6Aggregate

' Connect to the server

Svr = New ScxV6DbClient.ScxV6Server()

Svr.Connect("MAIN", "", "")

' Find a folder on the system

Obj = Svr.FindObject("Modbus Channel")

' Get the historic aggregate from the object

Aggr = Obj.Aggregate("ConnectionPoint2")

' Set the port of the connection point

Aggr.Interface.Port = "COM2"

' Disconnect

Svr.Disconnect()


Disclaimer

Geo SCADA Expert 2020